Microsoft DirectX 8.1 (C++)

IAMTimelineObj::GetStartStop

The GetStartStop method retrieves the object's start and stop times, relative to the object's parent.

Syntax

HRESULT GetStartStop(
    REFERENCE_TIME *pStart,
    REFERENCE_TIME *pStop
);

Parameters

pStart

Pointer to a variable that receives the start time, in 100-nanosecond units.

pStop

Pointer to a variable that receives the stop time, in 100-nanosecond units.

Return Value

Returns S_OK if successful, or E_POINTER otherwise.

Remarks

Compositions, groups, and tracks always have a start time of 0.

During rendering, DES rounds an object's start and stop times to the nearest frame boundary. However, DES does not overwrite the object's times. If you change the group frame rate, the rounded times are always calculated from the original times. For more information, see Frame Rates.

To determine the start and stop times in the rendered project, pass the values returned by GetStartStop to the IAMTimelineObj::FixTimes method.

See Also